#include "ifftgpu.h"

void test0()
{
    Problem p;
    p.fftDim.push_back(4);
    p.iDim.push_back(Dim(4, 4));
    p.iDim.push_back(Dim(4, 1));
    p.oDim.push_back(Dim(16, 1));

    Plan * pl = make_plan(&p);

    if (pl) {
        pl->print(stdout);
    }
    destroy_plan(pl);
}

void test1(int n, int batch)
{
    Problem p;
    p.fftDim.push_back(n);
    p.iDim.push_back(Dim(n*batch, 1));
    p.oDim.push_back(Dim(n*batch, 1));

    Plan * pl = make_plan(&p);

    if (pl) {
        pl->print(stdout);
    }
    destroy_plan(pl);
}

int main(int argc, char * argv[])
{
    //test1(16, 16);
    test0();

    printf("Total problems met: %d \n", get_static().nprob );
    printf("Total choices made: %d \n", get_static().nchoice );
    return 0;
}